package com.yulong.web.server;


import com.rabbitmq.http.client.domain.UserInfo;
import com.yulong.model.pojo.UmsAdmin;
import com.yulong.model.pojo.UmsPermission;
import com.yulong.web.utils.ResponseMap;

import java.util.List;

public interface UmsAdminService {

     List<UserInfo> selectAll();
     List<UmsAdmin> selectList(String username);

     ResponseMap register(UmsAdmin umsAdmin) ;
     ResponseMap login(String username, String password) ;

     UmsAdmin queryByUserName(String username);

     ResponseMap deleteById(String id);
     ResponseMap updateById(UmsAdmin umsAdmin);
     ResponseMap updateRole(Long adminId, List<Integer> roleIds);

     /**
      * 查询用户的角色表
      * @param adminId
      * @return
      */
     ResponseMap queryAdminRoleRelationList(Long adminId);

     /**
      * 禁用启用用户
      * @param id
      * @param status   0  禁用  1  启用
      * @return
      */
     ResponseMap updateByStatus(Long id,Long status);

     /**
      * 获取用户所有权限（包括角色权限和+-权限）
      */
     List<UmsPermission> getPermissionList(Long adminId);
}
